const allRouters = [
  {
    path: "/welcome",
    name: "welcome",
    component: () =>
      import(/*webpackChunkName:"welcome"*/ "../views/Home/Welcome"),
    meta: {
      name: "管理首页",
      icon: "el-icon-s-home",
      fullPath: "/welcome",
    },
  },
  {
    path: "/users",
    name: "users",
    component: () => import(/*webpackChunkName:"users"*/ "../views/Home/Users"),
    meta: {
      name: "用户管理",
      icon: "",
      fullPath: "/users",
    },
  },
  {
    path: "/statistics",
    name: "statistics",
    component: () =>
      import(/*webpackChunkName:"statistics"*/ "../views/Home/Statistics"),
    meta: {
      name: "数据统计",
      icon: "el-icon-s-marketing",
      fullPath: "/statistics",
    },
  },
  {
    path: "/mine",
    name: "mine",
    component: () => import(/*webpackChunkName:"mine"*/ "../views/Home/Mine"),
    meta: {
      name: "我的中心",
      icon: "el-icon-s-custom",
      fullPath: "/mine",
    },
  },
  {
    path: "/attendance",
    name: "attendance",
    component: () =>
      import(/*webpackChunkName:"attendance"*/ "../views/Home/Attendance"),
    meta: {
      name: "考勤管理",
      icon: "el-icon-s-check",
      fullPath: "/attendance",
    },
  },
  {
    path: "/studentManager",
    name: "studentManager",
    redirect: "/studentManager/studentProduct",
    component: () =>
      import(
        /*webpackChunkName:"studentManager"*/ "../views/Home/StudentManager/index.vue"
      ),
    meta: {
      name: "学员管理",
      icon: "el-icon-user-solid",
      fullPath: "/studentManager",
    },
    children: [
      {
        path: "studentDormitory",
        name: "studentDormitory",
        component: () =>
          import(
            /*webpackChunkName:"studentDormitory"*/ "../views/Home/StudentManager/studentDormitory"
          ),
        meta: {
          name: "学员宿舍",
          icon: "el-icon-s-promotion",
          fullPath: "/studentManager/studentDormitory",
        },
      },
      {
        path: "studentProduct",
        name: "studentProduct",
        component: () =>
          import(
            /*webpackChunkName:"studentProduct"*/ "../views/Home/StudentManager/studentProduct"
          ),
        meta: {
          name: "学员项目管理",
          icon: "el-icon-s-grid",
          fullPath: "/studentManager/studentProduct",
        },
      },
      {
        path: "studentProfile",
        name: "studentProfile",
        component: () =>
          import(
            /*webpackChunkName:"studentProfile"*/ "../views/Home/StudentManager/studentProfile"
          ),
        meta: {
          name: "学员资料",
          icon: "el-icon-s-claim",
          fullPath: "/studentManager/studentProfile",
        },
      },
    ],
  },
];

export default allRouters;
